import java.io.File;
import java.io.InputStream;
import java.io.*;

public class rd {
    public static void main(String[] args) {
        File file = new File("I:" + File.separator + "muyan" + File.separator + "vip" + File.separator + "yootk.txt");
        if (file.exists()) {
            try (InputStream inputStream = new FileInputStream(file)) {
                byte data[] = new byte[1024];
                int len = inputStream.read(data);
                if (len != -1) {
                    System.out.println("读取到数据内容【" + new String(data, 0, len) + "】");
                }
            } catch (IOException e) {
                System.err.println("文件读取异常: " + e.getMessage());
                e.printStackTrace();
            }
        } else {
            System.out.println("文件不存在");
        }
    }
}
